home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Technology Seed / ADC Seed CD - July 1999.toast / Carbon SDK 1.0d10c3 / Sample Code / AppearanceSample / ClassicPane.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-01  |  1.2 KB  |  59 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        ClassicPane.h
  3.  
  4.     Contains:    Class to drive our classic pane, showing new versions of old favorites.
  5.  
  6.     Version:    Appearance 1.0 SDK
  7.  
  8.     Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     File Ownership:
  11.  
  12.         DRI:                Edward Voas
  13.  
  14.         Other Contact:        7 of 9, Borg Collective
  15.  
  16.         Technology:            OS Technologies Group
  17.  
  18.     Writers:
  19.  
  20.         (edv)    Ed Voas
  21.  
  22.     Change History (most recent first):
  23.  
  24.          <2>    10/28/97    edv        Use RadioGroup control!
  25.          <1>     9/11/97    edv        First checked in.
  26. */
  27.  
  28. #pragma once
  29.  
  30. #include "MegaPane.h"
  31. #include "Appearance.h"
  32. #include <ControlDefinitions.h>
  33.  
  34. class ClassicPane : public MegaPane
  35. {
  36.     public:
  37.             ClassicPane( DialogPtr dialog, SInt16 items );
  38.         virtual ~ClassicPane();
  39.         
  40.         virtual void        ItemHit( SInt16 item );
  41.     
  42.     private:
  43.         static pascal void    ScrollingFeedbackProc( ControlHandle control, SInt16 part );
  44.         static pascal void    DrawPictureProc( ControlHandle control, SInt16 part );
  45.  
  46.         static ControlActionUPP    fScrollBarProc;
  47.         static ControlUserPaneDrawUPP fDrawProc;
  48.  
  49.         ControlHandle        fVerticalScrollBar;
  50.         ControlHandle        fHorizontalScrollBar;
  51.         ControlHandle        fUserItem;
  52.         Point                fPictOffset;
  53.         SInt16                fPictWidth;
  54.         SInt16                fPictHeight;
  55.         PicHandle            fPicture;
  56.         SInt16                fUserItemHeight;
  57.         SInt16                fUserItemWidth;
  58. };
  59.